package cn.zdm.designpattern.templatepattern;

import lombok.extern.slf4j.Slf4j;

/**
 * copyright (C), 2020, 北京同创永益科技发展有限公司
 *
 * @author ZhaoDeman
 * @version 1.0.0
 * <author>                <time>                  <version>                   <description>
 * ZhaoDeman        2020/12/4 16:33                 1.0
 * @program designpattern
 * @description
 * @create 2020/12/4 16:33
 */
@Slf4j
public class DescriptionTemplate {

    public static void main(String[] args) {
        log.info("展示一下模板方法的使用.....");
        log.info("展示一下Cricket()的使用");
        Game game = new Cricket();
        game.play();
        System.out.println();
        log.info("展示一下football()的使用");
        Game game1 = new Football();
        game1.play();
    }
}
